﻿@model Hotel.Web.Models.Service

@{
    ViewBag.Title = Hotel.Web.Views.AdministratorService.Resource.Edit;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>@Hotel.Web.Views.AdministratorService.Resource.Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>@Hotel.Web.Views.AdministratorService.Resource.Service</legend>

        @Html.LabelFor(model => model.Name)<br />
        @Html.EditorFor(model => model.Name)
        @Html.ValidationMessageFor(model => model.Name)<br /><br />

        @Html.LabelFor(model => model.Price)<br />
        @*<input id="Price" name="Price" type="text" value=@Model.Price />*@
        @Html.EditorFor(model => model.Price)
        @Html.ValidationMessageFor(model => model.Price)<br /><br />

        @Hotel.Web.Views.AdministratorService.Resource.Rated<br />
        @Html.DisplayFor(model => model.State)

        <p>
            <input type="submit" value=@Hotel.Web.Views.AdministratorService.Resource.Save />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink(Hotel.Web.Views.AdministratorService.Resource.BackToList, "Index")
</div>
